package com.wabi.frame;

import javax.swing.JFrame;

import com.wabi.frame.components.MenuContainer;
import com.wabi.frame.components.TabbedPane;

public class WabiFrame extends JFrame {

	private static TabbedPane tabPanel;
	
	public WabiFrame(String title){

		
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setTitle(title);
		this.setSize(512,400);
		this.setResizable(false);

		this.setJMenuBar(new MenuContainer());
		tabPanel = new TabbedPane();
	        //Add content to the window.
	    this.getContentPane().add(tabPanel);
		//This will center the JFrame in the middle of the screen
		this.setLocationRelativeTo(null);
	}
	
	public static TabbedPane getTabPanel() {
		return tabPanel;
	}

}
